<% form_for(@document) do |f| %>
  <%= f.error_messages %>
	<label for="document[title]">标题 : 
	<%=f.text_field :title%>
	</label>
	<p/>
	<%= rich_text_editor(:document, :content, :toolbarSet => :Simple, :width => "55%", :height => "320px" )%>
	<p/>
  <p>
    <%= f.submit "保存" %>
  </p>
<% end %>

<%= link_to 'Show', @document %> |
<%= link_to 'Back', documents_path %>